﻿using System.Collections.Generic;

namespace Best.SmartCms.Dto.Mall
{
    /// <summary>
    /// 商城主页
    /// </summary>
    public class MallIndexDto
    {
        /// <summary>
        /// 推荐商品
        /// </summary>
        public List<ProductItemDto> TuiJianItems { get; set; }

        /// <summary>
        /// 热销商品
        /// </summary>
        public List<ProductItemDto> HotItems { get; set; }
    }

    /// <summary>
    /// 商品信息
    /// </summary>
    public class ProductItemDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品分类
        /// </summary>
        public long CategoryName { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal OldPrice { get; set; }

        /// <summary>
        /// 主图地址
        /// </summary>
        public string ImageUrl { get; set; }
    }

    /// <summary>
    /// 商品详情
    /// </summary>

    public class ProductInfoDto
    {
        /// <summary>
        /// 主键
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 商品名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 商品分类
        /// </summary>
        public long CategoryName { get; set; }
        /// <summary>
        /// 销售价格
        /// </summary>
        public decimal Price { get; set; }
        /// <summary>
        /// 商品原价
        /// </summary>
        public decimal OldPrice { get; set; }

        /// <summary>
        /// 商品详情
        /// </summary>
        public string Content { get; set; }
        /// <summary>
        /// 库存数量
        /// </summary>
        public int StockQuantity { get; set; }
        /// <summary>
        /// 已售数量
        /// </summary>
        public int SoldQuantity { get; set; }
        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }

        /// <summary>
        /// 主图地址
        /// </summary>
        public List<string> ImageList { get; set; }
    }
}
